﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Furion.Application
{
    /// <summary>
    /// 通过code获取access_token   
    /// </summary>
    public class WxOpenAccessToken
    {
        public string access_token { get; set; }

        public int expires_in { get; set; }

        public int errcode { get; set; }


        public string errmsg { get; set; }

    }

    public class WxPara
    {
        public string code { get; set; }

        public string openid { get; set; }
    }


    public class WxUserPhone
    {
        public int errcode { get; set; }


        public string errmsg { get; set; }

        public PhoneInfo phone_info { get; set; }
    }


    public class PhoneInfo
    {
        public string phoneNumber { get; set; }

        public string purePhoneNumber { get; set; }

        public string countryCode { get; set; }

        public Watermark watermark { get; set; }
    }


    public class Watermark
    {
        public int timestamp { get; set; }


        public string appid { get; set; }
    }


    public class WxUserPara
    {
        public long UserId { get; set; }

        public string ImageUrl { get; set; }
        public string NickName { get; set; }
    }


   

    public class WxCode2Session
    {
        public string openid { get; set; }

        public string session_key { get; set; }

        public string unionid { get; set; }

        public int errcode { get; set; }

        public string errmsg { get; set; }
    }


    public class MessageSendWxAppPara
    {
        [Required]
        public string openid { get; set; }

        [Required]
        public string title { get; set; }

        [Required]
        public string pagepath { get; set; }

    }

    public class MessageSendPara
    {
        public string openid { get; set; }


        public string Content { get; set; }
    }

    public class MessageSendOutPut
    {
        public int errcode { get; set; }

        public string errmsg { get; set; }
    }

    public class MessageSendResult
    {
        public long UserId { get; set; }

        public string NickName { get; set; }

        public string Msg { get; set; }
    }


    public class SubscribePara
    {
        public int UserId { get; set; }


        /// <summary>
        /// 跳转页面
        /// </summary>
        public string page { get; set; }

        /// <summary>
        /// 审核结果  5个以内汉字
        /// </summary>
        [MaxLength(5), Required]
        public string auth_result { get; set; }

        /// <summary>
        /// 审核内容 20个以内字符
        /// </summary>
        [MaxLength(20), Required]
        public string auth_content { get; set; }

        /// <summary>
        /// 备注  20个以内字符
        /// </summary>
        [MaxLength(20), Required]
        public string auth_remark { get; set; }

    }


    public class SubscribeRangePara
    {
        public List<SubscribePara> paras { get; set; }
    }
}
